package com.kstm.betterlife;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class GreetingController {
	
	@RequestMapping("/greeting")
	public String greeting(@RequestParam(value="name",required=false,defaultValue="skygreen")String name,Model model){
		model.addAttribute("name", name);
		return "greeting";
	}
}
